home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / misc / emu / amiSPIMsrc.lha / parser.h < prev    next >
C/C++ Source or Header  |  1994-01-17  |  1KB  |  50 lines

  1. /* SPIM S20 MIPS simulator.
  2.    Interface to parser for instructions and assembler directives.
  3.    Copyright (C) 1990-1994 by James Larus (larus@cs.wisc.edu).
  4.    ALL RIGHTS RESERVED.
  5.  
  6.    SPIM is distributed under the following conditions:
  7.  
  8.      You may make copies of SPIM for your own use and modify those copies.
  9.  
  10.      All copies of SPIM must retain my name and copyright notice.
  11.  
  12.      You may not sell SPIM or distributed SPIM in conjunction with a
  13.      commerical product or service without the expressed written consent of
  14.      James Larus.
  15.  
  16.    THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  17.    IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  18.    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19.    PURPOSE. */
  20.  
  21.  
  22. /* $Header: /home/primost/larus/Software/SPIM/RCS/parser.h,v 1.4 1994/01/18 03:21:45 larus Exp larus $
  23. */
  24.  
  25.  
  26. /* Exported functions: */
  27.  
  28. #ifdef __STDC__
  29. void fix_current_label_address (mem_addr new_addr);
  30. int imm_op_to_op (int opcode);
  31. void initialize_parser (char *file_name);
  32. int op_to_imm_op (int opcode);
  33. void yyerror (char *s);
  34. int yyparse ();
  35. #else
  36. void fix_current_label_address ();
  37. int imm_op_to_op ();
  38. void initialize_parser ();
  39. int op_to_imm_op ();
  40. void yyerror ();
  41. int yyparse ();
  42. #endif
  43.  
  44.  
  45. /* Exported Variables: */
  46.  
  47. extern int data_dir;        /* Non-zero means item in data segment */
  48.  
  49. extern int text_dir;        /* Non-zero means item in text segment */
  50.